@extends('extend.admin')
@section('title','轮播管理')
@section('content')
<section id="main-content">
    <div class="row">
        <div class="col-md-12">
            <!--breadcrumbs start -->
            <ul class="breadcrumb">
                <li><a href="#">首页</a>
                </li>
                <li>轮播管理</li>
                <li class="active">轮播添加</li>
            </ul>
            <!--breadcrumbs end -->
            <h1 class="h1">轮播添加</h1>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">轮播添加</h3>
                    <div class="actions pull-right">
                        <i class="fa fa-chevron-down"></i>
                        <i class="fa fa-times"></i>
                    </div>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal form-border" id="form" novalidate="novalidate" action="/lunbo/insert" method="post" enctype="multipart/form-data">
                        @if(count($errors)>0)
                            <div class="alert alert-danger alert-dismissable text-center">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                            <strong>
                            @foreach ($errors->all() as $error)
                                <span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;&nbsp;<span>{{ $error }}</span><br>
                            @endforeach
                            </strong>
                            </div>
                        @endif
                        
                        <div class="form-group">
                        <label class="col-sm-3 control-label">图片链接:</label>
                        <div class="col-sm-6">
                            <input class="form-control" name="link" id="input1" value="" placeholder="" type="text">
                        </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片描述:</label>
                            <div class="col-sm-6">
                                <input class="form-control" name="description" id="input1" value="" placeholder="" type="text">
                            </div>
                        </div>  

                        <div class="form-group">
                            <label class="col-sm-3 control-label">上传图片</label>
                            <div class="col-sm-6">
                                <input  name="photo" id="input12" value="" type="file">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-7 col-sm-10">
                            	{{csrf_field()}}
                                <button type="submit" class="btn btn-primary">添加</button>
                                <button type="reset" class="btn btn-info">重置</button>    	
                            </div>
                        </div>
                    </div>
                    </form>


                </div>
            </div>
        </div>
    </div>
</section>
@endsection